package com.bupt.ilink.mapper.userManagement;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bupt.ilink.entity.userManagement.TeamGroup;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TeamGroupMapper extends BaseMapper<TeamGroup> {

    @Select("SELECT * FROM team_group WHERE parent_id = #{parentId}")
    List<TeamGroup> findChildGroupsByParentId(@Param("parentId") Long parentId);

}